package com.baosight.risk.service.system.impl;

import com.baosight.risk.api.system.ISysOperLogService;
import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.base.service.BaseServiceImpl;
import com.baosight.risk.mapper.system.SysOperLogMapper;
import com.baosight.risk.service.system.entity.SysOperLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SysOperLogServiceImpl extends BaseServiceImpl<SysOperLog> implements ISysOperLogService {

    @Autowired
    private SysOperLogMapper operLogMapper;

    @Override
    public BaseMapper getMapper() {
        return operLogMapper;
    }

    @Override
    public void batchInsert(List<SysOperLog> sysOperLogList) {
        try {
            operLogMapper.batchInsert(sysOperLogList);
        } catch (Exception e) {
            System.out.println(e);
        }
    }

    @Override
    public List<SysOperLog> fuzzyQuery(SysOperLog operLog) {
        return operLogMapper.fuzzyQuery(operLog);
    }


}
